<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_content
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

// Create a shortcut for params.
$params = &$this->item->params;
$images = json_decode($this->item->images);
$canEdit	= $this->item->params->get('access-edit');
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.tooltip');
JHtml::core();

?>

<div class="customer">
	
		<div style="float:left; padding-right:15px">
		<img
		<?php if ($images->image_intro_caption):
			echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
		endif; ?>
		src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>" class="img_service" />
		</div>        
				<h3>
					<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"><?php echo $this->item->title; ?></a></h3>
					<p class="caps">
						<?php 			
										$arr = explode(" ", strip_tags($this->item->introtext));
										if(count($arr) >= 40)
										{
											$this->item->sintrotext = "";
											for($i=0; $i < 40; $i++)
											{
												$this->item->sintrotext .= $arr[$i]." ";
											}
											$this->item->sintrotext .= "...";
										}
										else $this->item->sintrotext = strip_tags($this->item->introtext);
										$this->item->sintrotext = str_replace("\"", "", $this->item->sintrotext);
										
										echo $this->item->sintrotext;
						?>			
					<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>" class="more-link"><?php echo JTEXT::_("COM_CONTENT_READ_MORE_TITLE"); ?></a></p>
</div><!--end customer-->
